<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Talking 后台管理 -- 我们致力于打造最专业的贴吧</title>
<link rel="stylesheet" href="./static/css/frame.css" />
<script type="text/javascript" src="./static/js/jquery-1.3.min.js"></script>
<script type="text/javascript">
$(document).ready(function(){
    $('#chkDel').click(function(){
        if($(this).attr('checked')==true){
            $('input[type=checkbox]').each(function(i){
                $(this).attr('checked','checked');
            });
        }
        else{
            $('input[type=checkbox]').each(function(i){
                $(this).removeAttr('checked');
            });
        }
    });
});
</script>
</head>

<body>
<div id="content">
    <div class="title">帖子 » 帖子管理</div>
    <div class="main">
        <h3>帖子管理</h3>
        <form action="./post.php" method="post" name="form">
        <table cellpadding="0" cellspacing="0" class="list">
            <tbody>
                <tr>
                    <td width="30" align="center">删除</td>
                    <td>标题</td>
                    <td>内容</td>
                    <td width="40" align="center">回帖数</td>
                    <td width="70" align="center">拥有者</td>
                    <td width="150" align="center">创建时间</td>
                    <td width="30" align="center">修改</td>
                </tr>                 
                {{section name=n loop=$posts}}
                <tr>
                    <td align="center"><input type="checkbox" name="del[ ]" value="{{$posts[n].PostID}}" /></td>
                    <td><a href="javascript:top.resizeFrame2();">{{$posts[n].PostTitle}}</a></td>
                    <td>{{$posts[n].PostContent}}</td>
                    <td align="center">{{$posts[n].PostReplyNum}}</td>
                    <td align="center">{{$posts[n].BarID}}</td>
                    <td align="center">{{$posts[n].PostAuthor}}</td>
                    <td align="center"><a href="javascript:top.resizeFrame2();"><img src="./static/images/modify.gif" title="修改" /></a></td>
                </tr>
                {{/section}}  
                <tr>                                                               
                    <td align="center"><input type="checkbox" id="chkDel" /></td>
                    <td colspan="4"></td>
                </tr>
            </tbody>
        </table>
        <p>
            <input type="submit" name="submit" class="button_submit" id="btnSubmit" value="提交" />  
        </p>
        </form> 
    </div>  
</div>
</body>
</html>
